//
//  TKYSettingCell.m
//  StationHouseHelper
//
//  Created by apple on 2018/6/15.
//  Copyright © 2018年 铁科院. All rights reserved.
//

#import "TKYSettingCell.h"
@interface TKYSettingCell()


@end
@implementation TKYSettingCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self.contentView addSubview:self.titleLabel];
        [self.contentView addSubview:self.contentLabel];
        }
    return self;
}

- (void)setIsTouch:(BOOL)isTouch{
    _isTouch = isTouch;
    if (_isTouch) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
}

- (UILabel *)titleLabel {
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(kWidthScale *10, self.kx_height/2 -kHeightScale *10, kWidthScale *100, kHeightScale *20)];
        _titleLabel.font = Font(14);
        _titleLabel.textColor = kUIColorFromRGB(333333, 1);
        _titleLabel.text = @"修改密码";
    }
    return _titleLabel;
}

- (UILabel *)contentLabel {
    if (_contentLabel == nil) {
        _contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenWidth - kWidthScale *100, self.kx_height/2 -kHeightScale *10 , kWidthScale *70, kHeightScale *20)];
        _contentLabel.text = @"修改密码";
         _contentLabel.textColor = kRGBColor(153, 153, 153, 1);
        _contentLabel.textAlignment = NSTextAlignmentRight;
        _contentLabel.font = Font(14);
    }
    return _contentLabel;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
